home *** CD-ROM | disk | FTP | other *** search
- {---------------------- BRACKET ---------------------------
-
- { The BRACKET macro draws rounded corner brackets with the
- {Fillet command using a user defined fillet. The bracket will be
- {drawn on the right side of the two points that are entered. The
- {top half is then Mirror-Copied and then grouped. The Class and
- {Layer is set to 100.
-
- {User locates the two endpoints for the bracket and enters radius.
- PROMPT Prompt=`Locate bracket endpoint:` Var=#P1 Type=Coor
- Point [#P1|;]
- PROMPT Prompt=`Locate opposite endpoint:` Var=#P2 Type=Coor
- Point [#P2|;]
- PROMPT Prompt=`Enter Radius of Corner` Var=#F1 Type=Num
-
- Delete [-|-|;]
- {System measures the distance and angle between points entered.
- DS,P Silent [#P1|#P2|;]
- #d=%ds.d / 2 {Total distance between points divided by 2
- #a=%ds.a {Angle created by the two points
-
- {One half of bracket is drawn in with Fillet command.
- FL #F1 Cl=100 Lay=100 Pe=0 [#P1|p,#F1,#a-90|p,#d,#a|p,#F1,#a-90|;]
-
- {System stores last point entered in variables.
- #X1=%CD.x
- #Y1=%CD.y
-
- {Other half of bracket is drawn in with Fillet command.
- FL #F1 Cl=100 Lay=100 Pe=0 [A,#X1,#Y1|p,#F1,#a+90|p,#d,#a|p,#F1,#a+90|;]
-
- {The two halves are now grouped together.
- GP Cl=100 Tag=`Bracket` [A,#X1,#Y1|-|-|;]
-
- Return
-